(function(){var n,t,w,a,v,b,it;try{n=window.$MicrosoftMaps8;t=n.Internal;t.TaskData=t.TaskData||{};var et=n.Anchor,ot=n.BasicMapAnimation,st=n.BirdseyeV2Metadata,ht=n.BitmapImageTemplate,ct=t._BoundsAccumulator,l=t.Control,f=t.ControlTemplate,lt=t._BaseMapTemplateSelector,k=n.Internal._Debug,at=n.DefaultTemplateSelector,vt=t.DelayLoadedObject,yt=t._EntityHelper,pt=t._EntryPoints,wt=t._FeatureNames,s=n.GlobalConfig,bt=t._Gimme,h=t._Helper,kt=n.ImageryMapLayer,ut=t._JSEvent,dt=t._LatLonCrs,gt=n.LocationRect,ni=t._LocalStorageCache,ti=t._LruCache,ii=n.MapMath,ri=s.features.mapDelay,i=n.MapQuadrant,r=n.MapTypeId,ui=t._MercatorTileId,fi=t._MercatorTileUtility,ei=n.MapView,oi=n.Location,si=t._Network,hi=t._Observable,ft=t._ObservableObject,y=t._Overlay,ci=n.Point,li=n.PrimitiveOverlayHelper,ai=n.RasterImageryScene,vi=n.Rectangle,c=n.ResourceManager.MapDelay,yi=n.SimplePointPrimitive,pi=n.Size,wi=s.features.streetside,bi=s.features.sharing,ki=s.features.traffic,di=n.VectorImageTemplate,gi=n.VectorMapLayer,nr=t._VectorMath,tr=n.Viewport,d=n.ZoomLevel,e=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),p=function(n){function t(i,r,u){var e=n.call(this)||this,o=t._copyrightContainerTemplate;return o+=t._copyrightControlTemplate,o+=t._clickableCopyrightTemplate,o+="<\/span><\/div>",u&&r&&r.copyrightTermsLinkUrl&&(o+=t._termsLinkTemplate.replace("{termsLink}",r.copyrightTermsLinkUrl)),o+="<\/div>",e._map=i,e.defineProperty("shadowTextStyle"),e.defineProperty("copyrightAttributions"),e.defineProperty("CopyrightLinkHref"),e.defineProperty("CopyrightLinkText"),e.setTemplate(new f(o)),e.setShadowTextStyle("ShadowTextDark"),e._minStart=null,e._maxEnd=null,e.copyrightUpdated=new ut,e.disposables.push(e._map.copyrightChanged.addThrottled(function(){return e._updateCopyright()},2e3)),e.disposables.push(e._map.mapTypeChanged.add(function(n){return e._onMapTypeChanged(n)})),e.disposables.push(e._map.actualSizeChanged.add(function(){e._updateMinStart();e._updateMaxEnd();e._updateCopyrightSize()})),e.rendered.addOne(function(){e._copyrightControl=e.getRootElement().select(".CopyrightControl");e._map.getConfig().useOverlayQuadrants&&e.getRootElement().add_class("quadrantOverride")}),e._updateCopyright(),e}return e(t,n),t.prototype._updateCopyright=function(){var n=this;this._map&&this._map.getCopyrights(function(t){var i="",r,u;for(n._copyrightWithLink=null,r=0,u=t.length;r=0){n._copyrightWithLink=t.splice(r,1)[0];break}i=t.join(", ");n._updateCopyrightLinkDiv()&&(i+=", ");n.copyrightString!==i&&(n.copyrightProviders=t,n.copyrightString=i,n.setCopyrightAttributions&&n.setCopyrightAttributions(i),n._updateCopyrightSize(),n.copyrightUpdated.invoke())})},t.prototype._onMapTypeChanged=function(n){var t=this,i=n.newMapTypeId!==r.birdseyeV2||!s.isMapsVertical;this.setVisible(n.newMapTypeId!==r.streetside&&i);n.oldMapTypeId===r.aerial||n.oldMapTypeId===r.birdseye||n.newMapTypeId!==r.aerial&&n.newMapTypeId!==r.birdseye||this.setShadowTextStyle("ShadowTextLight");n.oldMapTypeId!==r.aerial&&n.oldMapTypeId!==r.birdseye||n.newMapTypeId===r.aerial||n.newMapTypeId===r.birdseye||this.setShadowTextStyle("ShadowTextDark");Microsoft.Maps.setTimeout(function(){t._updateCopyright()},0)},t.prototype._updateCopyrightLinkDiv=function(){var t=!1,u,i,n,o;if(this._copyrightWithLink)if(this._copyrightWithLink.indexOf("href")>=0){if(u=new DOMParser,i=u.parseFromString(this._copyrightWithLink,"text/xml"),i&&i.firstChild){var r=i.firstChild,f=r.textContent,e=r.attributes.getNamedItem("href")&&r.attributes.getNamedItem("href").nodeValue;f&&e&&(this.setCopyrightLinkText(f),this.setCopyrightLinkHref(e),t=!0)}}else n=this._copyrightWithLink.trim().split(" "),n.length>=3&&(t=!0,this.setCopyrightLinkText(n[0]+" "+n[1]),this.setCopyrightLinkHref(n[2]));return o=t?"":"none",this.getRootElement().select(".copyrightLink").set_style({display:o}),t},t.prototype._updateCopyrightSize=function(){var n,t;(this._minStart||this._updateMinStart(),this._maxEnd||this._updateMaxEnd(),h._isRtl())||(n=this._map.getConfig().useOverlayQuadrants?this.getRootElement().get_absolute_pos().x:this.getRootElement().get_relative_pos().x,n',t._termsLinkTemplate='